package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

import java.util.Arrays;

class Solution6405 {
    public int[] findThePrefixCommonArray(int[] A, int[] B) {
        return ArrayUtils.findThePrefixCommonArray(A, B);
    }
}

public class leetcode6405 {
    public static void main(String[] args) {
        Solution6405 solution6405 = new Solution6405();
        int[] A = {1, 3, 2, 4};
        int[] B = {3, 1, 2, 4};
        System.out.println(Arrays.toString(solution6405.findThePrefixCommonArray(A, B)));

        int[] A1 = {2,3,1};
        int[] B1 = {3,1,2};
        System.out.println(Arrays.toString(solution6405.findThePrefixCommonArray(A1, B1)));

    }
}
